package com.ztesoft.web.common.customdb.dao;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.ztesoft.web.common.customdb.dao.mapper.IBillingCycleCustomMapper;

/**
 * @Description 账期查询
 * @author lin.weibin@zte.com.cn
 * @date 2015年8月6日 下午8:16:53
 * @since 1.0
 *
 */
@Repository
public class BillingCycleCustomDao extends SqlSessionDaoSupport {

    @Resource(name = "majorSqlSessionTemplate")
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        super.setSqlSessionTemplate(sqlSessionTemplate);
    }

    public List<String> selectByCycleDate(String cycleDate) {
    	
        return getMapper().selectByCycleDate(cycleDate);
    }

    public IBillingCycleCustomMapper getMapper() {
    	return getSqlSession().getMapper(IBillingCycleCustomMapper.class);
    }

}
